import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '商家名称',
            dataIndex: 'shopName',
            width: 200,
        },
        {
            title: '商家图片',
            dataIndex: 'shopImg',
            width: 200,
        },
        {
            title: '商家描述',
            dataIndex: 'shopDesc',
            width: 200,
        },
        {
            title: '员工所属机场（不必要）',
            dataIndex: 'airportId',
            width: 200,
        },
        {
            title: '营业时间',
            dataIndex: 'shopTime',
            width: 200,
        },
        {
            title: '机场地址',
            dataIndex: 'shopAddress',
            width: 200,
        },
        {
            title: '门店电话',
            dataIndex: 'shopPhone',
            width: 200,
        },
        {
            title: '商家类型',
            dataIndex: 'shopCategoryId',
            width: 200,
        },
        {
            title: '是否上架（2不上架，1上架）',
            dataIndex: 'isShelf',
            width: 200,
        },
        {
            title: '排序',
            dataIndex: 'shopSort',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '商家名称',
            field: 'shopName',
            component: 'Input',
            required: true,
        },
        {
            label: '商家图片',
            field: 'shopImg',
            component: 'Input',
            required: true,
        },
        {
            label: '商家描述',
            field: 'shopDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '员工所属机场（不必要）',
            field: 'airportId',
            component: 'Input',
            required: true,
        },
        {
            label: '营业时间',
            field: 'shopTime',
            component: 'Input',
            required: true,
        },
        {
            label: '机场地址',
            field: 'shopAddress',
            component: 'Input',
            required: true,
        },
        {
            label: '门店电话',
            field: 'shopPhone',
            component: 'Input',
            required: true,
        },
        {
            label: '商家类型',
            field: 'shopCategoryId',
            component: 'Input',
            required: true,
        },
        {
            label: '是否上架（2不上架，1上架）',
            field: 'isShelf',
            component: 'Input',
            required: true,
        },
        {
            label: '排序',
            field: 'shopSort',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
